package com.example.springdemo.task;

import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
@Slf4j
@Component
public class UploadTask {


    @Scheduled(cron = "0/10 * * * * ?")
    public void upload() {
        System.out.println("上传任务");
    }
}
